package com.epoint.mobileoa.tools;

import java.text.DecimalFormat;

/**
 * 单位转换
 * 
 * @author lilin
 * @date 2011-12-12 下午03:50:19
 * @ClassName: ConvertUnit
 */
public class ConvertUnit {
	public static double millisecondToMinute(int duration) {
		// 定义数据格式
		DecimalFormat myformat = new DecimalFormat("#####0.00");
		double time = duration / 1000;
		double time2 = time / 60;
		return Double.valueOf(myformat.format(time2));

	}

}
